package see.battle.adaptor;

import see.battle.message.Message;
import see.battle.message.StartGameMessage;

public class StubAdaptor implements Adaptor {
  StartGameMessage _m;  
  boolean _gameIsOn = false;
  
  public StubAdaptor() {
    _m = new StartGameMessage(System.currentTimeMillis(), 
        (long)(Math.random() * 1000) + 1);
  }

  public void run() {
    // STUB
  }
  public void set_view(int view) {
	  
  }
  public void stop() {
    // STUB
  }

  public Message readNextMessage() {
    if (!_gameIsOn) {
      _gameIsOn = true;
      return _m;
    }
    return null;
  }

  //@Override
  public void sendBulletMessage(long time, float position, 
      long additionalShipDelay) {
    // STUB
  }

  //@Override
  public void sendFocusMessage(float focus) {
    // STUB    
  }
}
